import { Injectable } from '@angular/core';
import {RequestUtil} from "../../util/request-util";
import {MsgResult} from "../../models/msg-result";
import {API} from "../../constants/constants";
import {Observable} from "rxjs/Observable";

@Injectable()
export class BigScreenUtilService {

  constructor(
    private requestUtil: RequestUtil
  ) { }
  getStatisticsDailyVisitsByTime():Observable<MsgResult>{
    let params = 'startTime='+null;
    return this.requestUtil.post(API.getStatisticsDailyVisitsByTime,params);
  }

  getStatisticsVisitsByTime():Observable<MsgResult>{
    return this.requestUtil.post(API.getStatisticsVisitsByTime);
  }

  getNewAccountByTime():Observable<MsgResult>{
    return this.requestUtil.post(API.getNewAccountByTime);
  }


  getVisitNumber():Observable<MsgResult>{
    return this.requestUtil.post(API.getVisitNumber);
  }
  getTerminalVisitType():Observable<MsgResult>{
    return this.requestUtil.post(API.getTerminalVisitType);
  }
}
